package cn.dansj.service;

import cn.dansj.entity.User;
import org.springframework.data.domain.Page;

import java.util.List;

public interface UserService {
    Page<User> search(Integer pageNum,
                      Integer pageLimit,
                      String username,
                      String status,
                      String mail,
                      String role);

    void updateUser(User user);

    void save(User user);

    void save(List<User> users);

    User getUser(String identifier);

    List<User> getUser();

    User getUserBySequence(String sequence);

    void updateStatus(String sequence, String status);

    boolean initAdminUser();

    User getUserByToken(String token);
}
